import axios from 'axios'
const TARGET_SERVER = process.env.VUE_ENV === 'server'
const cnodeBaseUrl = process.env.config.CNODE_HOST

export function fetchTopics(data, url) {
  return axios({
    url: cnodeBaseUrl + '/api/taxContentQuery' + url,
    method: 'GET',
    params: data
  })
}

export function fetchTopicDetail(data) {
  return axios({
    url: cnodeBaseUrl + '/api/taxContentQuery/retrieve/wxmpInfo/',
    method: 'POST',
    params: data
  })
}
